package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * opc菜单表 实体类
 * 表名：ra_opc_menu
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_opc_menu")
public class RaOpcMenu implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 父类主键
     */
    @Column(name = "parent_id", nullable = false)
    private Long parentId;
    
    /**
     * 菜单名称
     */
    @Column(name = "menu_name", nullable = false, length = 128)
    private String menuName;
    
    /**
     * opc采集器ID
     */
    @Column(name = "opc_info_id")
    private Long opcInfoId;
    
    /**
     * 菜单层级
     * 默认值: 1
     */
    @Column(name = "level_grade", nullable = false)
    private Integer levelGrade;
    
    /**
     * 是否系统（0、否 1、是）
     * 默认值: 1
     */
    @Column(name = "is_system")
    private Byte isSystem;
    
    /**
     * 排序号
     * 默认值: 0
     */
    @Column(name = "sort_no")
    private Integer sortNo;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaOpcMenu{" +
            "id=" + id +
            ", parentId=" + parentId +
            ", menuName=" + menuName +
            ", opcInfoId=" + opcInfoId +
            ", levelGrade=" + levelGrade +
            ", isSystem=" + isSystem +
            ", sortNo=" + sortNo +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 